/* 设置li样式 */
li{
    list-style: none;
}

/* 设置顶部导航条样式 */
.top-bar-swapper{
    position: relative;
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 12px;
    color: #b0b0b0;
    background-color: #333;
}

/* 设置a标签样式 */
.top-bar-swapper a{
    color: #b0b0b0;
    display: inline-block;
    text-decoration: none;
}

/* 设置a悬停样式 */
.top-bar-swapper a:hover{
    color: #fff;
}

/* 设置line样式 */
.top-bar .line{
    color: #424242;
    margin: 0 8px;
}

/* 设置top-bar位置 */
.top-bar{
    margin: 0 auto;
}

/* 设置浮动 */
.service ,.top-bar li{
    float: left;
}

/* 为app开启相对定位 */
.app{
    position: relative;
}

/* 设置app下的小三角 */
.app::after{
    width: 0;
    height: 0;
    /* 开启绝对定位 */
    position: absolute;
    content: '';
    display: block;
    border: 8px solid transparent;
    border-top: none;
    border-bottom-color: #fff;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: none;
}

/* 设置下载app的下拉二维码 */
.app .qrcode{
    position: absolute;
    left: -40px;
    width: 124px;
    height: 0;
    overflow: hidden;
    line-height: 1;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    transition: height 0.5s;
    z-index: 9999;
}

/* 设置二维码图片样式 */
.app .qrcode img{
    width: 90px;
    height: 90px;
    margin: 17px;
    margin-bottom: 10px;
}

/* 设置下拉字体样式 */
.app .qrcode span{
    font-size: 14px;
    color: #000;
}

/* 设置下载app悬停样式 */
.app-wrapper:hover >.app .qrcode,
.app-wrapper:hover > .app::after{
    display: block;
    height: 148px;
}

/* 右侧导航条，购物车设置右浮动 */
.login ,.shop-car{
    float: right;
}

/* 购物车样式 */
.shop-car{
    position: relative;
    margin-left: 25px;
    margin-top: -2px;
}

/* 购物车里a标签样式 */
.shop-car a{
    width: 120px;
    background-color: #424242;
    text-align: center;
}

/* 设置购物车下拉样式 */
.shop-car .shop-list{
    position: absolute;
    line-height: 100px;
    text-align: center;
    color: #000;
    right: 0;
    width: 300px;
    height: 0;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    z-index: 9999;
    transition: height 0.5s;
}

/* 设置购物车悬停样式 */
.shop-car:hover a{
    background-color: #fff;
    color: #ff6700;
}

/* 设置购物车下拉悬停样式 */
.shop-car:hover .shop-list{
    height: 100px;
}

/* 头部导航栏样式 */
.header-wrapper{
    position: relative;
    height: 100px;
    line-height: 100px;
}

/* .center-bar{
    position: relative;
} */

/* 小米logo样式 */
.center-bar .icon-xiaomi{
    float: left;
    line-height: 1;
    margin-top: 22px;
}

/* 设置logo图片大小 */
.icon-xiaomi h1,
.icon-xiaomi img
{
    width: 56px;
    height: 56px;
}

.center-list{
    float: left;
    margin-left: 30px;
    font-size: 16px;
}

/* 设置列表样式 */
.center-list li{
    float: left;
    padding-right: 20px;
}

/* 隐藏全部商品分类 */
.all-goods{
    visibility: hidden;
}

/* 设置商品下拉层 */
.center-list .goods-info{
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 0px;
    top: 100px;
    left: 0;
    transition: height 0.5s;
    background-color: #fff;
    z-index: 9999;
}

/* 悬停使商品下拉层出现 */
.center-list .show-goods:hover ~ .goods-info,
.goods-info:hover{
    height: 228px;
    border-top: 1px solid rgb(224, 224, 224);
    box-shadow: 0 5px 5px rgba(0, 0, 0, .2);
}

/* 设置a标签成块元素 */
.center-list li a{
    display: block;
}

/* 设置a悬停样式 */
.center-list a:hover{
    color: #ff6700;
}

/* 右侧搜索框 */
.search{
    position: relative;
    right: 0;
    width: 300px;
    height: 50px;
    float: right;
    margin-top: 25px;
    box-sizing: content-box;
}

/* 搜索输入框样式 */
.search .search-text{
    float: left;
    width: 224px;
    line-height: 50px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    outline: none;
    padding-left: 20px;
}

/* 搜素按钮样式 */
.search .iconfont{
    float: left;
    font-size: 20px;
    border: 1px solid #e0e0e0;
    border-left: none;
    width: 52px;
    height: 50px;
    line-height: 50px;
    display: block;
    color: #616161;
    background-color: #fff;
    box-sizing: content-box;
}

.search .iconfont:hover{
    background-color: #ff6700;
    color: #fff;
    /* border: none; */
}

/* 设置banner-wrapper样式 */
.banner-wappper{
    width: 234px;
    height: 460px;
    color: #fff;
    background: rgba(105,101,101,.6);
}

/* 左侧菜单样式 */
.banner-left{
    position: relative;
    float: left;
    width: 234px;
    height: 420px;
    left: 0;
    color: #fff;
    background: rgba(105,101,101,.6);
    padding: 20px 0;
}

/* 设置左侧菜单选项样式 */
.banner-left li a{
    height: 42px;
    line-height: 42px;
    padding: 0 0 0 30px;
    display: block;
    color: #fff;
}

/* 设置左侧菜单箭头 */
.banner-left em{
    position: absolute;
    width: 16px;
    height: 16px;
    font-size: 25px;
    right: 30px;
    color: #fff;
}

/* 设置左侧菜单悬停样式 */
.banner-left a:hover{
    background-color: #ff6700;
}

/* 设置轮播图区域浮动 */
.banner-carousel{
    float: left;
}

/* 设置轮播图照片大小 */
.banner-carousel img{
    width: 992px;
    height: 460px;
}

/* 广告容器样式 */
.ad{
    margin-top: 50px;
}

/* 左侧广告 */
.ad .shortcut{
    float: left;
    width: 234px;
    height: 170px;
    background-color: #b0b0b0;
    line-height: 1;
    margin-right: 2px;
}

.ad .shortcut a{
    width: 70px;
    height: 63.6px;
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
    display: block;
}

.shortcut span{
    font-size: 20px;
    display: block;
}

.ad .imges{
    float: left;
}

.ad .imges li{
    float: left;
    margin-left: 14px;
}

.imges img{
    float: left;
    height: 170px;
    width: 316px;
}

